@if (!results()) {
<p class="center">Please enter some values and press "Calculate".</p>
} @else {
<table>
  <thead>
    <tr>
      <th>Year</th>
      <th>Interest Value</th>
      <th>Investment (Year)</th>
      <th>Annual Investment</th>
      <th>Total Interest</th>
      <th>Invested Capital</th>
    </tr>
  </thead>
  <tbody>
    @for ( result of results(); track result.year) {
    <tr>
      <td>{{ result.year }}</td>
      <td>{{ result.interest | currency }}</td>
      <td>{{ result.valueEndOfYear | currency }}</td>
      <td>{{ result.annualInvestment | currency }}</td>
      <td>{{ result.totalInterest | currency }}</td>
      <td>{{ result.totalAmountInvested | currency }}</td>
    </tr>
    }
  </tbody>
</table>
}
